package com.yd.domain.business;

import com.yd.domain.commom.DomainObject;
import com.yd.domain.sys.DicEnum;
import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;
import java.util.List;

/**
 * @author zy
 * @create 2018-03-07 9:03
 * @desc 货品
 **/
public class Goods extends DomainObject<Goods> {
    private float price;//价格
    private float perWeight;//单件商品重量
    private Date createTime=new Date();//生成日期
    @NotBlank(message = "产品名不能为空")
    private String title;//标题
    @NotBlank(message = "产品编号不能为空")
    private String identifier;//编号
    private String des;//描述
    private String status;//状态
    private String checkStatus= DicEnum.CHECK.UN_CHECK;//审核status
    private String checkStatusName;//审核状态
    private String checkUser;//审核人
    private Date checkTime;//审核时间
    private String updateUser;//修改人
    private Date updateTime;//修改时间
    private int number;//库存
    @NotBlank(message = "产品材质不能为空")
    private String type;//商品类型
    @NotBlank(message = "产品样式不能为空")
    private String gstyle;//样式类型
    private Boolean ifPic=false;//是否存在图片
    private String iconUrl;//列表图片展示
    private String typeName;//商品类型
    private String gstyleName;//样式类型
    private List<GoodsWeight> goodsWeightList;
    @NotBlank(message = "产品类型不能为空")
    private String typeOne;
    private String typeOneName;
    private String px;
    private String pxName;
    public String getPx() {
        return px;
    }

    public void setPx(String px) {
        this.px = px;
    }

    public List<GoodsWeight> getGoodsWeightList() {
        return goodsWeightList;
    }

    public void setGoodsWeightList(List<GoodsWeight> goodsWeightList) {
        this.goodsWeightList = goodsWeightList;
    }

    public String getGstyle() {
        return gstyle;
    }

    public void setGstyle(String gstyle) {
        this.gstyle = gstyle;
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public float getPerWeight() {
        return perWeight;
    }

    public void setPerWeight(float perWeight) {
        this.perWeight = perWeight;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(String checkStatus) {
        this.checkStatus = checkStatus;
    }

    public String getCheckUser() {
        return checkUser;
    }

    public void setCheckUser(String checkUser) {
        this.checkUser = checkUser;
    }

    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getNumber() {
        return number;
    }

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCheckStatusName() {
        return checkStatusName;
    }

    public void setCheckStatusName(String checkStatusName) {
        this.checkStatusName = checkStatusName;
    }

    public Boolean getIfPic() {
        return ifPic;
    }

    public void setIfPic(Boolean ifPic) {
        this.ifPic = ifPic;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getGstyleName() {
        return gstyleName;
    }

    public void setGstyleName(String gstyleName) {
        this.gstyleName = gstyleName;
    }

    public String getTypeOne() {
        return typeOne;
    }

    public void setTypeOne(String typeOne) {
        this.typeOne = typeOne;
    }

    public String getTypeOneName() {
        return typeOneName;
    }

    public void setTypeOneName(String typeOneName) {
        this.typeOneName = typeOneName;
    }

    public String getPxName() {
        return pxName;
    }

    public void setPxName(String pxName) {
        this.pxName = pxName;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "price=" + price +
                ", perWeight=" + perWeight +
                ", createTime=" + createTime +
                ", title='" + title + '\'' +
                ", identifier='" + identifier + '\'' +
                ", des='" + des + '\'' +
                ", status='" + status + '\'' +
                ", checkStatus='" + checkStatus + '\'' +
                ", checkStatusName='" + checkStatusName + '\'' +
                ", checkUser='" + checkUser + '\'' +
                ", checkTime=" + checkTime +
                ", updateUser='" + updateUser + '\'' +
                ", updateTime=" + updateTime +
                ", number=" + number +
                ", type='" + type + '\'' +
                ", gstyle='" + gstyle + '\'' +
                ", ifPic=" + ifPic +
                ", iconUrl='" + iconUrl + '\'' +
                ", typeName='" + typeName + '\'' +
                ", gstyleName='" + gstyleName + '\'' +
                ", goodsWeightList=" + goodsWeightList +
                ", typeOne='" + typeOne + '\'' +
                ", typeOneName='" + typeOneName + '\'' +
                ", px='" + px + '\'' +
                ", pxName='" + pxName + '\'' +
                '}';
    }
}
